package com.handong.handdemo.util;

/**
 * Created by Administrator on 2016/11/29.
 */

public class HttpConstant {

    public static final int SUCCESS_CODE = 0X00;

    public static final int ERROR_CODE = 0X01;

    public static final String ACTIVATE_CMD = "140501";

    public static final String EXIT_CMD = "140504";

    public static final String CALCULATE_INSTANCE_CMD = "140105";

    public static final String UPDATE_INSTANCE_CMD = "140707";

    public static final String UPDATE_TIME_CMD = "140608";

    public static final int DATA_BEGIN = 21;

    public static final String UTF_DEFAULT = "UTF-8";

    public static final String HTTP_HEAD = "http://";
    public static final String HTTPS_HEAD="https://";

    //眉州ip 118.122.80.202
    public static final String REQUEST_IP = "http://118.122.80.202:9402";
    //public static final String REQUEST_IP = "http://171.221.223.239:9090";
    //public static final String ACTION_REQUEST = "/API/PMPMhandler.ashx";
    public static final String ACTION_REQUEST = "/api/Request/PeocessRequest";

    public static final String UPLOAD_IP = "10.1.200.95";//
    public static final String INTERNET_IP = "118.122.80.202";
    //邑州ip
    //public static final String INTERNET_IP = "117.172.224.182";
    //public static final String INTERNET_IP = "192.168.1.18";
    //public static final String INTERNET_IP = "192.168.253.1";
    public static final String TEST_IP = "192.168.253.1";

    //public static final String INTERNET_IP = "171.221.223.239";

    public static final int UPLOAD_PORT = 9400;
    //public static final int UPLOAD_PORT = 9998;

    public static final String RESPONSE_SUCCESS = "success";

    public static final String FAIL_REASON = "reason";

    public static final String REQUEST_CODE = "code";

    public static final String RESPONSE_ID = "missId";

    /**
     * 正常上传指令。
     */
    public static final short NORMAL_ORDER = 100;

    /**
     * 报警指令。
     */
    public static final short WARNING_ORDER = 101;

    /**
     * 正常上传指令。
     */
    public static final byte NORMAL_ORDER_BYTE = 100;

    /**
     * 报警指令。
     */
    public static final byte WARNING_ORDER_BYTE = 101;

    /**
     * 结束指令。
     */
    public static final byte FINISH_ORDER_BYTE = 102;


    /**
     * 报警复位指令。
     */
    public static final byte RESET_ORDER_BYTE = 103;

    public static final byte CLOSE_ORDER_BYTE = 104;

    public static final byte START_MISSION=105;
    /**
     * 暂停指令。
     */
    public static final byte PAUSE_ORDER_BYTE = 106;
    /**
     * 恢复指令。
     */
    public static final byte RESUME_ORDER_BYTE = 107;

    /**
     * 清除弹框指令。
     */
    public static final byte CLEAR_ALERT_BYTE = 108;
}
